CONTENTS | INDEX | PREV | NEXT
 pow
 fpow 

 NAME
  pow    - return one double to the power of another
  fpow   - return one float to the power of another

 SYNOPSIS
  #include <math.h>

  double a = pow(b, bp);
  double bp;
  double b;

  float  c = flog(d, dp);
  float  dp;
  float  d;

 FUNCTION
  Returns the power of one fp quantity to another.

 EXAMPLE
  /*
   *  compile with the math library -lm
   */

  #include <math.h>
  #include <stdio.h>

  main()
  {
      {
      double a = pow(0.25, 4.0);
      printf("pow 0.25 ^^ 4.0 = %lfn", a);     /*  0.0039 */
      }
      {                       /*  less accuracy   */
      float a = fpow(0.25, 4.0);
      printf("pow 0.25 ^^ 4.0 = %lfn", (double)a);
      }
      return(0);
  }

 INPUTS
  double b;   double floating point value (base)
  double bp;  double floating point value (exponent)
  float  d;   float  floating point value (base)
  float  dp;  float  floating point value (exponent)

 RESULTS
  double a;   result double floating point value
  float  c;   result float  floating point value